package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimeMaincheckotherdiseaecombMapper;
import com.dime.physical.domain.DimeMaincheckotherdiseaecomb;
import com.dime.physical.service.IDimeMaincheckotherdiseaecombService;

/**
 * 其他疾病异常项目Service业务层处理
 * 
 * @author Tiny
 * @date 2024-02-28
 */
@Service
public class DimeMaincheckotherdiseaecombServiceImpl implements IDimeMaincheckotherdiseaecombService 
{
    @Autowired
    private DimeMaincheckotherdiseaecombMapper dimeMaincheckotherdiseaecombMapper;

    /**
     * 查询其他疾病异常项目
     * 
     * @param id 其他疾病异常项目主键
     * @return 其他疾病异常项目
     */
    @Override
    public DimeMaincheckotherdiseaecomb selectDimeMaincheckotherdiseaecombById(String id)
    {
        return dimeMaincheckotherdiseaecombMapper.selectDimeMaincheckotherdiseaecombById(id);
    }

    /**
     * 查询其他疾病异常项目列表
     * 
     * @param dimeMaincheckotherdiseaecomb 其他疾病异常项目
     * @return 其他疾病异常项目
     */
    @Override
    public List<DimeMaincheckotherdiseaecomb> selectDimeMaincheckotherdiseaecombList(DimeMaincheckotherdiseaecomb dimeMaincheckotherdiseaecomb)
    {
        return dimeMaincheckotherdiseaecombMapper.selectDimeMaincheckotherdiseaecombList(dimeMaincheckotherdiseaecomb);
    }

    /**
     * 新增其他疾病异常项目
     * 
     * @param dimeMaincheckotherdiseaecomb 其他疾病异常项目
     * @return 结果
     */
    @Override
    public int insertDimeMaincheckotherdiseaecomb(DimeMaincheckotherdiseaecomb dimeMaincheckotherdiseaecomb)
    {
        dimeMaincheckotherdiseaecomb.setCreateTime(DateUtils.getNowDate());
        return dimeMaincheckotherdiseaecombMapper.insertDimeMaincheckotherdiseaecomb(dimeMaincheckotherdiseaecomb);
    }

    /**
     * 修改其他疾病异常项目
     * 
     * @param dimeMaincheckotherdiseaecomb 其他疾病异常项目
     * @return 结果
     */
    @Override
    public int updateDimeMaincheckotherdiseaecomb(DimeMaincheckotherdiseaecomb dimeMaincheckotherdiseaecomb)
    {
        dimeMaincheckotherdiseaecomb.setUpdateTime(DateUtils.getNowDate());
        return dimeMaincheckotherdiseaecombMapper.updateDimeMaincheckotherdiseaecomb(dimeMaincheckotherdiseaecomb);
    }

    /**
     * 批量删除其他疾病异常项目
     * 
     * @param ids 需要删除的其他疾病异常项目主键
     * @return 结果
     */
    @Override
    public int deleteDimeMaincheckotherdiseaecombByIds(String[] ids)
    {
        return dimeMaincheckotherdiseaecombMapper.deleteDimeMaincheckotherdiseaecombByIds(ids);
    }

    /**
     * 删除其他疾病异常项目信息
     * 
     * @param id 其他疾病异常项目主键
     * @return 结果
     */
    @Override
    public int deleteDimeMaincheckotherdiseaecombById(String id)
    {
        return dimeMaincheckotherdiseaecombMapper.deleteDimeMaincheckotherdiseaecombById(id);
    }
}
